package com.fourth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.entity.Stock;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author Mr.ma
 * @since 2023/3/8 20:37
 **/
@Mapper
public interface UbStockDao extends BaseMapper<Stock> {

    /**
     * 根据商品id查询库存
     * @param goodsId
     * @return
     */
    Stock selectByGoodsId(String goodsId);
}
